package vo;

import java.io.Serializable;
import java.util.ArrayList;

import po.GiftPO;
import po.MemberPO;

public class CustomerBasicInfoVO implements Serializable {
	
	private static final long serialVersionUID = -7125858004912698927L;

	private MemberPO member;
	
	private ArrayList<GiftPO> gifts;
	
	public CustomerBasicInfoVO(MemberPO memberPO){
		this.member=memberPO;
		this.gifts=null;
	}
	
	public CustomerBasicInfoVO(MemberPO memberPO, ArrayList<GiftPO> gifts) {
		this.member = memberPO;
		this.gifts = gifts;
	}
	
	public String getUsername() {
		return this.member.getUsername();
	}

	public int getPoint() {
		return this.member.getPoint();
	}
	
	public String toString() {
		return member.toString() + gifts.toString();
	}

	public int getID() {
		return member.getId();
	}
	
	public String getGiftString(){
		return member.getGiftList().toString();
	}
}
